/*************************************************************************
 *
 *  Copyright (C) 2013 Florian Dang <florian.coin@gmail.com>
 *
 *  This file is part of NatusVerse.
 *
 *  NatusVerse is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  NatusVerse is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with NatusVerse.  If not, see <http://www.gnu.org/licenses/>.
 *
 *************************************************************************/

#include "life/cell.h"

#include "graphics/geometry.h"
using graphics::Rectangle;

#include <stdio.h>
#include <cassert>

namespace life
{
void Cell::Display(Window win,
		t_point down_left,
		t_point up_right) const
{
	Rectangle rect_cell(win, down_left, up_right, color().color());
	rect_cell.DrawFill();
}

void Cell::Print() const
{
	printf("[%d %d]\t%d\t", x(), y(), state());
	color().Print();
}
} // end namespace life
